<script>
$(function() {
	$('#liveCustomerInfoForm').form({
		onSubmit : function() {
			return true;
		},
		success : function(result) {
			result = $.parseJSON(result);
			try{
			   if(reloadRoom && typeof(reloadRoom) == "function"){
				   reloadRoom();
			   }
			}catch(e){
			   printLog('reloadRoom不存在');
			}
			showMsg(result.msg);
		}
	});
});
</script>
<form id="liveCustomerInfoForm" method="post" action="customer.do?leave">
<table cellpadding="5">
	<input name="id" type="hidden" value="${(customerItem.id)!}" />
	<input name="roomId" type="hidden" value="${roomId!}" />
	<tr>
		<td>入住房号:</td>
		<td>
			<input name="roomNo"  class="easyui-validatebox textbox" readonly="readonly" value="${(customerItem.roomNo)!}"/>
		</td>
		<td>房间类型:</td>
		<td>
			<@eu.comboBox url="common.do?loadComboBox&key=ROOM_TYPE&value=${(customerItem.roomType)!}" name="roomType" disabled="true"/>
		</td>
		<td>卡号:</td>
		<td>
			<input name="cardNo"  class="easyui-validatebox" readonly="readonly" value="${(customerItem.cardNo)!}"/>
		</td>
		
		
		
	</tr>
	<tr>
		<td>当前状态:</td>
		<td>
			<@eu.comboBox url="common.do?loadComboBox&key=CUSTOMER_STATUS&value=${(customerItem.status)!}" name="status"/>
		</td>
		<td>姓名:</td>
		<td>
			<input name="name"  class="easyui-validatebox" readonly="readonly" data-options="required: true" value="${(customerItem.name)!}"/>
		</td>
		
		<td>身份证号:</td>
		<td>
			<input name="cardId"  class="easyui-validatebox" readonly="readonly" data-options="required: true" value="${(customerItem.cardId)!}"/>
		</td>
		<td>性别:</td>
		<td>
			<@eu.comboBox url="common.do?loadComboBox&key=SEX&value=${(customerItem.sex)!}" name="sex"/>
		</td>
	</tr>
	<tr>
		<td>其他人:</td>
		<td colspan="5">
			<textarea style="height: 100px;width:100%" rows="6"  name="other" class="easyui-validatebox" data-options="prompt: '姓名-身份证'">${(customerItem.other)!}</textarea>
		</td>
	</tr>
	<tr>
		
		<td>
			入住时间:
		</td>
		<td>
			<input class="easyui-validatebox" readonly="readonly" value='<#if (customerItem.createTime)??>${(customerItem.createTime)?string("yyyy-MM-dd HH:mm:ss")}</#if>'/>
		</td>
		<td>
			离开时间:
		</td>
		<td>
			<input class="easyui-validatebox" readonly="readonly" value='<#if (customerItem.leaveTime)??>${(customerItem.leaveTime)?string("yyyy-MM-dd HH:mm:ss")}</#if>'/>
		</td>
	</tr>
</table>
</form>
